﻿<UserControl x:Class="CDC.SampleShell.Presentation.Content.ReportsTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="400" d:DesignWidth="600">
    <Grid x:Name="panelAnalysis" Background="White" DataContext="{Binding ReportsViewModel}">

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
            <TextBlock Margin="10" FontSize="28" FontWeight="Light">Reports</TextBlock>
            <StackPanel Height="10" />
        </StackPanel>

        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            
            <Grid Grid.Column="0" >
                <Grid.Background>
                    <LinearGradientBrush StartPoint="0, 0" EndPoint="1, 1">
                        <GradientStop Color="White" Offset="0" />
                        <GradientStop Color="#F1F1F1" Offset="1" />
                    </LinearGradientBrush>
                </Grid.Background>
                
                <StackPanel Margin="10">
                    <!--<Label Content="Reports" FontWeight="Bold" FontSize="16" />
                    
                    <StackPanel Height="10" />-->

                    <ListBox x:Name="canvasList" MaxHeight="200" ItemsSource="{Binding ReportFileNamesView}" SelectionChanged="canvasList_SelectionChanged">
                        
                    </ListBox>

                    <StackPanel Height="10" />

                    <Button Content="Regenerate Reports" Command="{Binding RegenerateReportsCommand}" />
                </StackPanel>
            </Grid>
            <Border Grid.Column="1" BorderThickness="1, 0, 0, 0" Width="1" Margin="0, 0, 0, 0" BorderBrush="Silver" />
            
            <!--<DocumentViewer x:Name="documentViewer" Grid.Column="3" Margin="1, 0, 0, 0" />-->
            <WebBrowser x:Name="browser" Grid.Column="3" />
        </Grid>
    </Grid>
</UserControl>
